package Server.Model.Base;

import java.io.Serializable;

/**
 * 正在游戏中的用户信息
 * @author ann
 *
 */
public class IServerUserItem implements Serializable{
	
	private static final long serialVersionUID = 1L;

	public IServerUserItem(){
		Init();
	}
	public int wChairID; // 椅子位置
	public int cbUserStatus; // 用户状态
	public int isAndroidUser;
	// 属性信息
	public int dwFaceID; // 头像索引
	public int cbVipLevel; // 会员等级
	public int cbGender; // 用户性别
	public int cbOnline; // 是否在线
	public int dwUserID; // 用户 I D
	public int dwGroupID; // 社团索引
	public int lUserScore; // 用户分数
	public int lUserCoin; //用户金币
	public double lUserRmb;//用户rmb1v1
	public String szNickName=""; // 用户昵称
	public String szIP;
	public int cannonLevel = 0;
	public int heartTime; // 用户心跳时间
	public double m_roundWonLose = 0.0;

	void SetUserStatus(int bUserStatus) {
		cbUserStatus = bUserStatus;
	};

	public void Init() {
		dwUserID = 0;
		dwGroupID = 0;
		lUserScore = 0;
		dwFaceID = 0;
		cbVipLevel = 0;
		cbGender = 0;
		cbOnline = 0;

		wChairID = 0;
		cbUserStatus = 0;
		isAndroidUser = 0;
		szNickName = "";
		szIP = "";
		
		heartTime = 0;
		lUserCoin = 0;
		lUserRmb = 0;
		cannonLevel = 0;
	}

	double GetUserScore() {
		return lUserScore;
	}
	public String GetUserInfo(){
		return String.format("%d#%s",dwUserID, szNickName);
	}
}
